<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>

<!DOCTYPE html>
<html class='no-js' lang='cn'>
<jsp:include page="/head.jsp" />
<link rel="stylesheet" href="${ctx }/editor/lib/codemirror.css">
<link rel="stylesheet" href="${ctx }/editor/addon/dialog/dialog.css">
<link rel="stylesheet" href="${ctx }/editor/theme/monokai.css">

<style type="text/css">
.CodeMirror {
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	font-size: 18px;
	height: auto;
}

.CodeMirror-scroll {
	max-height: 500px;
	min-height: 100px;
}
</style>
<body class='main page'>
	<jsp:include page="/top.jsp" />

	<div id='wrapper'>
		<section id='tools'>
			<ul class='breadcrumb' id='breadcrumb'>
				<li class='title'>代理</li>
				<li class='active'>编辑</li>
			</ul>
		</section>
		<!-- Sidebar -->
		<jsp:include page="/sidebar.jsp" />

		<!-- Content -->
		<div id='content'>
			<form id="proxy_form" >
				<input type="hidden" name="jobType" value="${_jobType }">
				<input type="hidden" name="_id" value="${obj._id }">
				<fieldset>
					<div class='form-group row'>
						<div class='col-lg-6'>
							<label class='control-label'>代理IP</label>
							<input class='form-control' placeholder='输入代理IP如:(0.0.0.0)' type='text' name="proxy_ip" id="proxy_ip" value="${obj.proxy_ip }">
						</div>
						<div class='col-lg-6'>
							<label class='control-label'>代理端口</label>
							<input class='form-control' placeholder="port" type='text' name="proxy_port" value="${obj.proxy_port }">
						</div>
					 </div>
				</fieldset>
				<fieldset>
					<div class='form-group row'>
						<div class='col-lg-6'>
							<label class='control-label'>代理用户名</label>
							<input class='form-control'  placeholder="username" type='text' name="proxy_username" value="${obj.proxy_username }">
						</div>
						<div class='col-lg-6'>
							<label class='control-label'>代理密码</label>
							<input class='form-control'  placeholder="password" type='text' name="proxy_password" value="${obj.proxy_password }">
						</div>
					</div>
				</fieldset>
				<fieldset>
					<div class='form-group row'>
						<div class='col-lg-12'>
							<label class='control-label'>代理描述</label>
							<textarea class='form-control' rows='4' id="proxy_remark" name="proxy_remark">${obj.proxy_remark }</textarea>
						</div>
					</div>
				</fieldset>
				<fieldset>
					<div class='form-group row'>
						<div class='col-lg-6'>
							<label class='control-label'>创建人</label>
							<input class='form-control' readonly='readonly' type='text' name="create_userid" value="${obj.create_userid }">
						</div>
						<div class='col-lg-6'>
							<label class='control-label'>更新人</label>
							<input class='form-control' readonly='readonly' type='text' name="update_userid" value="${obj.update_userid }">
						</div>
					</div>
				</fieldset>
				<div class='form-actions text-right'>
					<button class='btn btn-success' type='button' id="add_proxy">提交</button>
					<button class='btn btn-info' type="button" onclick="window.history.back(-1);" id="test_job">返回</button>
				</div>
			</form>
		</div>

	</div>
	<jsp:include page="/foot.jsp" />

	<!--DEVEL-->
	<script src="${ctx }/editor/lib/codemirror.js"></script>
	<script src="${ctx }/editor/addon/dialog/dialog.js"></script>
	<script src="${ctx }/editor/addon/search/searchcursor.js"></script>
	<script src="${ctx }/editor/mode/clike/clike.js"></script>
	<script src="${ctx }/editor/addon/edit/matchbrackets.js"></script>
	<script src="${ctx }/editor/keymap/vim.js"></script>
	<script src="${ctx }/editor/addon/display/fullscreen.js"></script>
	<script src="${ctx }/editor/mode/python/python.js"></script>
	<script src="${ctx }/editor/mode/javascript/javascript.js"></script>

	<script src="${ctx }/js/beautify.js"></script>
	<!-- 代理模块 JS配置 -->
	<script src="${ctx }/js/proxy/proxy.js"></script>
</body>
</html>
